﻿#ifndef GREET_IMPL_H
#define GREET_IMPL_H

#include "greet_service.h"
#include <QObject>

// 1个实现类，多继承，实现多个服务，达到一个插件提供多种服务的目的
class GreetImpl : public QObject, public HelloService, public ByeService
{
    Q_OBJECT
    Q_INTERFACES(HelloService)
    Q_INTERFACES(ByeService)

public:
    GreetImpl();
    void sayHello() Q_DECL_OVERRIDE;    // 服务1
    void sayBye() Q_DECL_OVERRIDE;      // 服务2
};

#endif // GREET_IMPL_H
